#include <iostream>
#include <cmath>
using namespace std;

int main()
{
    cout << "Enter payment amount: ";
    float paymentAmount;
    cin >> paymentAmount;

    cout << "Enter interest rate: ";
    float interestRate;
    cin >> interestRate;

    cout << "Enter number of payment periods: ";
    int paymentPeriods;
    cin >> paymentPeriods;

    cout << "Future value is: " << paymentAmount * pow((1 + interestRate / 100),(paymentPeriods)) - 1 / paymentPeriods << endl;

    return 0;
}
